package zlx.service;

import com.zlx.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceimp implements DeptService {
    @Autowired
    DeptService deptService;

    @Override
    public boolean addDept(Dept dept){
       return deptService.addDept(dept);
    }

    @Override
    public Dept queryById(Long id){
        return deptService.queryById(id);
    }
    @Override
    public List<Dept> queryAll(){
        return deptService.queryAll();
    }
}
